//
//  RootTabBarController.m
//  CarHome
//
//  Created by lanou3g on 15-4-25.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "RootTabBarController.h"
#import "InformationTableViewController.h"
#import "BrandListViewController.h"
#import "MineTableViewController.h"
#import "ALLViewController.h"

@interface RootTabBarController ()

@end

@implementation RootTabBarController


- (void)viewDidLoad {
    [super viewDidLoad];
    ALLViewController *allVC = [[ALLViewController new] autorelease];
    UINavigationController *informationNC = [[[UINavigationController alloc] initWithRootViewController:allVC] autorelease];
    informationNC.tabBarItem.image = [UIImage imageNamed:@"item01"];
    
    BrandListViewController *brandListVC = [[BrandListViewController new] autorelease];
    UINavigationController *brandListNC = [[[UINavigationController alloc] initWithRootViewController:brandListVC] autorelease];
    brandListNC.tabBarItem.image = [UIImage imageNamed:@"item03"];
    
    MineTableViewController *mineTVC = [[MineTableViewController new] autorelease];
    UINavigationController *mineNC = [[[UINavigationController alloc] initWithRootViewController:mineTVC] autorelease];
    mineNC.tabBarItem.image = [UIImage imageNamed:@"item05"];
    
    self.viewControllers = @[informationNC, brandListNC, mineNC];
    
}


/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
